#ifndef TOOLFORM_H
#define TOOLFORM_H

#include <QWidget>
#include <QStringListModel>
#include "DebugPulic.h"
#include "tools.h"
#include "src/DataProvider/SQL/sqlProvider.h"

// #include "coord.h"


namespace Ui {
class ToolForm;
}

class ToolForm : public QWidget
{
    Q_OBJECT

public:
    explicit ToolForm(QWidget *parent = nullptr);
    ~ToolForm();

private slots:
    void on_pb_transe_clicked();

    void on_pb_flush_clicked();

    void on_pb_GenToTool_clicked();

    void on_pb_GenToBase_clicked();

    void on_cb_cadid_currentIndexChanged(const QString &arg1);

    void on_cb_seamid_currentIndexChanged(const QString &arg1);

private:
    Ui::ToolForm *ui;

    std::pair<RobotPos,RobotPos>  MatrixTranse; // 变化关系  0.夹具到tool   1.tool到base
    QStringListModel *seam_model ;      // combobox的模型
    QStringListModel *cad_model ;      // combobox的模型
};

#endif // TOOLFORM_H
